package com.nmf.site.biz.sms.bx.enums;

public enum SmsType {
	memberLoginCode(1001, "验证码${code}，您正在进行身份验证，打死不要告诉别人哦！"),
	memeberRegisterCode(1002, "您的验证码${code}，该验证码5分钟内有效，请勿泄漏于他人！"),
	memberResetPswCode(1003, "会员密码重置"),
	
	pcYujinSms(1004, "PCnet预警信息"),
	;

	public Integer value;
	public String name;

	SmsType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static SmsType getStatus(Integer value) {
		if (value != null) {
			SmsType[] otypes = SmsType.values();
			for (SmsType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
